package com.hkrda523bpwp.hkr_da523b_projekt_pwp;

import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

public class SectionFragment extends Fragment {

	public static final String ARG_SECTION_NUMBER = "section_number";

	public SectionFragment() {
	}

	View rootView;
	@Override
	public View onCreateView(LayoutInflater inflater, ViewGroup container,
			Bundle savedInstanceState) {
		switch (getArguments().getInt(ARG_SECTION_NUMBER)) {
		case 1:
			rootView = inflater.inflate(R.layout.layout_home,
					container, false);
			break;		
		case 2:
			rootView = inflater.inflate(R.layout.layout_movies,
					container, false);
			break;
		case 3:
			rootView = inflater.inflate(R.layout.layout_booking,
					container, false);
			break;
		case 4:
			rootView = inflater.inflate(R.layout.layout_contact,
					container, false);
			break;
		default:
			break;
		}
		return rootView;
	}
}